import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)
export default new VueRouter({
	base: process.env.BASE_URL, //应用的基路径。例如，如果整个单页应用服务在 /app/ 下，然后 base 就应该设为 "/app/"
	routes:[
		{
			path: '/',
			name: 'exportList',
			redirect: 'exportList',
		},
		{
			path:'/index',
			name:'index',
			component: () =>import( /* webpackChunkName: "index" */ '@/views/index/index.vue'),
			children:[
				{
					path:'/exportList',
					name:'exportList',
					component: () =>import( /* webpackChunkName: "exportList" */ '@/views/exportList/exportList.vue')
				},
				{
					path:'/demo1',
					name:'demo1',
					component: () =>import( /* webpackChunkName: "demo1" */ '@/views/demo1/demo1.vue')
				}
			]
		}
	]
})
